-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: add ci action #96
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Welcome to Codecov 🎉Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests. Thanks for integrating Codecov - We've got you covered ☂️ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want to use and contribute overlay-kit but since this repository don't have ci, I couldn't do it well. so I added it
- publint
- arethetypeswrong
- build (not only package self, also examples react 16/17/18)
- lint
- test (w/ coverage upload on codecov - we can expose our coverage rate in README.md)
import { defineConfig } from 'vitest/config'; | ||
import packageJson from './package.json'; | ||
|
||
export default defineConfig({ | ||
plugins: [react()], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I removed unnecessary plugin
"@types/use-sync-external-store": "^0.0.6", | ||
"@vitejs/plugin-react": "^4.3.0", | ||
"@vitest/coverage-v8": "^2.1.8", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For vitest coverage
"jsdom": "^24.0.0", | ||
"react": "^18.2.0", | ||
"react-dom": "^18.2.0", | ||
"publint": "^0.2.12", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'll fix these after this Pull Request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
}, | ||
"dependencies": { | ||
"use-sync-external-store": "^1.2.2" | ||
}, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.17.1", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage: { | ||
provider: 'v8', | ||
}, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
coverage
"target": "ES2020", | ||
"useDefineForClassFields": true, | ||
"lib": ["ES2020", "DOM", "DOM.Iterable"], | ||
"module": "ESNext", | ||
"skipLibCheck": true, | ||
"jsx": "preserve" | ||
|
||
/* Bundler mode */ | ||
"moduleResolution": "bundler", | ||
"allowImportingTsExtensions": true, | ||
"isolatedModules": true, | ||
"moduleDetection": "force", | ||
"noEmit": true, | ||
"jsx": "react-jsx", | ||
|
||
/* Linting */ | ||
"strict": true, | ||
"noUnusedLocals": true, | ||
"noUnusedParameters": true, | ||
"noFallthroughCasesInSwitch": true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To vite project build
dist | ||
coverage |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
gitignore coverage
@@ -1,6 +1,6 @@ | |||
 | |||
|
|||
# overlay-kit · [](https://github.com/toss/overlay-kit/blob/main/LICENSE) | |||
# overlay-kit · [](https://github.com/toss/overlay-kit/blob/main/LICENSE) [](https://codecov.io/gh/toss/overlay-kit) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- if: matrix.command == 'yarn workspace overlay-kit run test' | ||
uses: codecov/codecov-action@v4 | ||
env: | ||
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
To make library users feel free to apply overlay-kit, Let's improve test coverage together
``` | ||
|
||
Here are the features overlay-kit provides: | ||
|
||
- **Hassle-free**: overlay-kit makes overlay management straightforward with a simple function call: just call `overlay.open(...)`. See [the overlay problem](https://overlay-kit.slash.page/motivation.html) for details. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wrong link
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have posted a question.
Aside from that, all the other changes look great. Thank you!
@@ -1,7 +1,7 @@ | |||
import { OverlayProvider } from 'overlay-kit'; | |||
import React from 'react'; | |||
import ReactDOM from 'react-dom'; | |||
import { Demo } from './demo'; | |||
import { Demo } from './demo.tsx'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I have a question.
Since moduleResolution
is set to bundler
, it seems like the .tsx
extension wouldn’t be necessary.
Could you help me understand why it might have been included?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah! That's not necessary chage right!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The review I left doesn’t seem to be a critical issue, so I will approve it.
Thank you!
I love your work, overlay-kit! Let's go🚀 |
Types of changes
Checklist
Further Comments